$OpenBSD: patch-main_php_h,v 1.1.1.1 2013/08/07 16:35:46 robert Exp $
--- main/php.h.orig.port	Sat Jul 27 18:43:38 2013
+++ main/php.h	Sat Jul 27 18:44:05 2013
@@ -146,7 +146,9 @@ END_EXTERN_C()
 # if PHP_WIN32
 typedef int socklen_t;
 # else
+#   if !defined(__OpenBSD__)
 typedef unsigned int socklen_t;
+#   endif
 # endif
 #endif
 
